package com.hjj.hello.spring.boot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 用户控制器
 */
@Controller
@RequestMapping(value = "user")
public class UserController {

    /**
     * 跳转到用户添加页
     * @return
     */
    @RequestMapping(value = "add" , method = RequestMethod.GET)
    public String user_add(){
        return "user/user_add";
    }

    /**
     * 跳转到用户修改页
     * @return
     */
    @RequestMapping(value = "update" , method = RequestMethod.GET)
    public String user_update(){
        return "user/user_update";
    }
}
